<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>弓友之家</title>
    <link rel="stylesheet" href="css/mui.css" />
    <link rel="stylesheet" href="fonts/iconfont.css" />
    <link rel="stylesheet" href="css/style.css" />
    <style>
    	.mui-scroll-wrapper{top: 44px;}
    </style>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">留言互动</h1>
	</header>
	<div class="mui-content">
		<div class="" id="message">
		    <div class="">
		        <div class="message">
		        	
		        </div>
		    </div>
		</div>
	</div>
	<br />
	<script type="text/javascript" src="js/mui.min.js" ></script>
	<script type="text/javascript" src="js/jquery-1.8.3.min.js" ></script>
	<script type="text/javascript" src="js/common.js" ></script>
	<script type="text/javascript" charset="utf-8">
      	mui.init();
      	mui.ajax(H_SRC+'/amier/user/msg_list',{
			data:{
				token:token
			},
			dataType:'json',
			type:'post',
			timeout:10000,             
			success:function(data){
				var dataurl=data.data;
				if(data.code == 1){
      				var html="";
      				for(var i=0;i<dataurl.length;i++){
      					html+='<div class="one"><dl class="mui-clearfix"><dt><img src="'+H_SRC+''+dataurl[i].touxiang+'"/></dt>';
		        		html+='<dd><h4>'+dataurl[i].realName+'</h4><p>'+dataurl[i].c_time+'</p></dd></dl>';
		        		html+='<div class="text">'+dataurl[i].content+'</div></div>';
      				}
      				$(".message").html(html);
				}else{
					mui.toast(data.msg);
				}
			},
			error:function(){
				
			}
		}) 
    </script>
</body>
</html>